<template>
  <div class="subpage">
    <!-- subpage是二级页面 -->
    <myhead title="登录" :back="true" :login="true">
      <van-icon name="revoke" size="36" class="icon" />
    </myhead>
    <!-- van-tabs标签页 -->
     <van-tabs v-model="active" color="red" title-active-color="red">
       <!-- pass立马登录 -->
      <van-tab name="pass" title="密码登录">        
        <LoginPass></LoginPass>
      </van-tab>
      <!-- code选项卡 -->
      <van-tab name="code" title="手机登录">        
        <LoginCode></LoginCode>
      </van-tab>
    </van-tabs>
  </div>
</template>
<script>
import LoginCode from "./LoginCode.vue";
import LoginPass from "./LoginPass.vue";
export default {
  components: {
    LoginCode,
    LoginPass,
  },
  name:"login",
  data(){
      return{
          active:'pass'//一开始显示pass页面
      }
  }
};
</script>